package com.zl.credit.service.impl;

import com.zl.credit.entity.CreditProgress;
import com.zl.credit.service.AdminUserUpdate;
import com.zl.credit.service.CreditProgressService;
import com.zl.credit.util.UserUpdaterChain;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

public class AdminUserUpadteThree implements AdminUserUpdate {
    @Autowired
    CreditProgressService creditProgressService;
    @Override
    public void update(CreditProgress creditProgress, int decision ,int power, UserUpdaterChain userUpdaterChains) {
        if (creditProgress.getRights().equals(3)&&power==3){
            System.err.println("调用第三个方法");
            if (decision==0){

                System.err.println("通过");
            }
            if (decision==1){
                System.err.println("不通过");
            }
        }else {
            userUpdaterChains.doChain(creditProgress, decision , power);
        }
    }
}
